<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pAppUpgrade
 *
 * @ORM\Table(name="p2p_app_upgrade")
 * @ORM\Entity
 */
class P2pAppUpgrade
{
    /**
     * @var string
     *
     * @ORM\Column(name="app_type", type="string", length=50, nullable=false)
     */
    private $appType;

    /**
     * @var string
     *
     * @ORM\Column(name="app_version", type="string", length=50, nullable=true)
     */
    private $appVersion;

    /**
     * @var string
     *
     * @ORM\Column(name="app_file", type="string", length=200, nullable=true)
     */
    private $appFile;

    /**
     * @var integer
     *
     * @ORM\Column(name="update_time", type="integer", nullable=false)
     */
    private $updateTime;

    /**
     * @var boolean
     *
     * @ORM\Column(name="app_isopen", type="boolean", nullable=false)
     */
    private $appIsopen = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set appType
     *
     * @param string $appType
     *
     * @return P2pAppUpgrade
     */
    public function setAppType($appType)
    {
        $this->appType = $appType;

        return $this;
    }

    /**
     * Get appType
     *
     * @return string
     */
    public function getAppType()
    {
        return $this->appType;
    }

    /**
     * Set appVersion
     *
     * @param string $appVersion
     *
     * @return P2pAppUpgrade
     */
    public function setAppVersion($appVersion)
    {
        $this->appVersion = $appVersion;

        return $this;
    }

    /**
     * Get appVersion
     *
     * @return string
     */
    public function getAppVersion()
    {
        return $this->appVersion;
    }

    /**
     * Set appFile
     *
     * @param string $appFile
     *
     * @return P2pAppUpgrade
     */
    public function setAppFile($appFile)
    {
        $this->appFile = $appFile;

        return $this;
    }

    /**
     * Get appFile
     *
     * @return string
     */
    public function getAppFile()
    {
        return $this->appFile;
    }

    /**
     * Set updateTime
     *
     * @param integer $updateTime
     *
     * @return P2pAppUpgrade
     */
    public function setUpdateTime($updateTime)
    {
        $this->updateTime = $updateTime;

        return $this;
    }

    /**
     * Get updateTime
     *
     * @return integer
     */
    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    /**
     * Set appIsopen
     *
     * @param boolean $appIsopen
     *
     * @return P2pAppUpgrade
     */
    public function setAppIsopen($appIsopen)
    {
        $this->appIsopen = $appIsopen;

        return $this;
    }

    /**
     * Get appIsopen
     *
     * @return boolean
     */
    public function getAppIsopen()
    {
        return $this->appIsopen;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
